<?php 
namespace app\Admin\model;
use think\model\View;
class RuleView extends View{
	public $viewFields=array(		
		'rule'=>array('_table'=>'zb_auth_rule','id','name','title','type','status','condition'=>'term','mid'),
		//condition必须别名,否则出错
		'modules'=>array('_table'=>'zb_modules','modulename','_on'=>'rule.mid=modules.id')
		);
}
 ?>